package br.ufrn.engcomp.arq;

import java.util.List;

public interface GenericDAO {

	public <T extends PersistDB> T findById(final Class<T> clazz, final int id);

	public <T extends PersistDB> List<T> findAll(final Class<T> clazz);

	public void save(final PersistDB object);

	public void update(final PersistDB object);
	
	public void updateNoFlush(final PersistDB object);

	public void delete(PersistDB object);

}
